﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace ProtocolWorkflows.OutboundDocumentslWF
{
    public sealed partial class OutboundDocumentslWF
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.SetFinalItemStatus = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.codeActivity1 = new System.Workflow.Activities.CodeActivity();
            this.ifElseBranchActivity4 = new System.Workflow.Activities.IfElseBranchActivity();
            this.IsApprovalsComplete = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ApproverListEmpty = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity3 = new System.Workflow.Activities.IfElseBranchActivity();
            this.TaskCompleted = new System.Workflow.Activities.IfElseBranchActivity();
            this.ConfirmIfApprovalsFinished = new System.Workflow.Activities.IfElseActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.InitializeApprovers = new System.Workflow.Activities.CodeActivity();
            this.ifElseActivity2 = new System.Workflow.Activities.IfElseActivity();
            this.onTaskChanged1 = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.createApprovalTask = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            this.stateInitializationActivity3 = new System.Workflow.Activities.StateInitializationActivity();
            this.stateInitializationActivity1 = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity2 = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivity2 = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity();
            this.initializeApproverTaskState = new System.Workflow.Activities.StateActivity();
            this.initializeApproversListState = new System.Workflow.Activities.StateActivity();
            this.approvalState = new System.Workflow.Activities.StateActivity();
            this.finalState = new System.Workflow.Activities.StateActivity();
            this.initialState = new System.Workflow.Activities.StateActivity();
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "approvalState";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalState";
            // 
            // SetFinalItemStatus
            // 
            this.SetFinalItemStatus.Name = "SetFinalItemStatus";
            this.SetFinalItemStatus.ExecuteCode += new System.EventHandler(this.SetFinalItemStatus_ExecuteCode);
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "initializeApproverTaskState";
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "finalState";
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "initializeApproverTaskState";
            // 
            // codeActivity1
            // 
            this.codeActivity1.Name = "codeActivity1";
            this.codeActivity1.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
            // 
            // ifElseBranchActivity4
            // 
            this.ifElseBranchActivity4.Activities.Add(this.setStateActivity6);
            this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
            // 
            // IsApprovalsComplete
            // 
            this.IsApprovalsComplete.Activities.Add(this.SetFinalItemStatus);
            this.IsApprovalsComplete.Activities.Add(this.setStateActivity5);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsApprovalComplete);
            this.IsApprovalsComplete.Condition = codecondition1;
            this.IsApprovalsComplete.Name = "IsApprovalsComplete";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.setStateActivity3);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ApproverListEmpty
            // 
            this.ApproverListEmpty.Activities.Add(this.setStateActivity2);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsApproverListEmpty);
            this.ApproverListEmpty.Condition = codecondition2;
            this.ApproverListEmpty.Name = "ApproverListEmpty";
            // 
            // ifElseBranchActivity3
            // 
            this.ifElseBranchActivity3.Name = "ifElseBranchActivity3";
            // 
            // TaskCompleted
            // 
            this.TaskCompleted.Activities.Add(this.codeActivity1);
            this.TaskCompleted.Activities.Add(this.setStateActivity4);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsTaskComplete);
            this.TaskCompleted.Condition = codecondition3;
            this.TaskCompleted.Name = "TaskCompleted";
            // 
            // ConfirmIfApprovalsFinished
            // 
            this.ConfirmIfApprovalsFinished.Activities.Add(this.IsApprovalsComplete);
            this.ConfirmIfApprovalsFinished.Activities.Add(this.ifElseBranchActivity4);
            this.ConfirmIfApprovalsFinished.Name = "ConfirmIfApprovalsFinished";
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ApproverListEmpty);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // InitializeApprovers
            // 
            this.InitializeApprovers.Name = "InitializeApprovers";
            this.InitializeApprovers.ExecuteCode += new System.EventHandler(this.InitializeApprovers_ExecuteCode);
            // 
            // ifElseActivity2
            // 
            this.ifElseActivity2.Activities.Add(this.TaskCompleted);
            this.ifElseActivity2.Activities.Add(this.ifElseBranchActivity3);
            this.ifElseActivity2.Name = "ifElseActivity2";
            // 
            // onTaskChanged1
            // 
            activitybind1.Name = "OutboundDocumentslWF";
            activitybind1.Path = "onTaskChanged1_AfterProperties1";
            activitybind2.Name = "OutboundDocumentslWF";
            activitybind2.Path = "onTaskChanged1_BeforeProperties1";
            correlationtoken1.Name = "ApprovalTaskToken";
            correlationtoken1.OwnerActivityName = "approvalState";
            this.onTaskChanged1.CorrelationToken = correlationtoken1;
            this.onTaskChanged1.Executor = null;
            this.onTaskChanged1.Name = "onTaskChanged1";
            activitybind3.Name = "OutboundDocumentslWF";
            activitybind3.Path = "createApprovalTask_TaskId1";
            this.onTaskChanged1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged1_Invoked);
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // createApprovalTask
            // 
            activitybind4.Name = "OutboundDocumentslWF";
            activitybind4.Path = "taskContentTypeId";
            this.createApprovalTask.CorrelationToken = correlationtoken1;
            this.createApprovalTask.ListItemId = -1;
            this.createApprovalTask.Name = "createApprovalTask";
            this.createApprovalTask.SpecialPermissions = null;
            activitybind5.Name = "OutboundDocumentslWF";
            activitybind5.Path = "createApprovalTask_TaskId1";
            activitybind6.Name = "OutboundDocumentslWF";
            activitybind6.Path = "createApprovalTask_TaskProperties1";
            this.createApprovalTask.MethodInvoking += new System.EventHandler(this.createApprovalTask_MethodInvoking);
            this.createApprovalTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.createApprovalTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.createApprovalTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "initializeApproversListState";
            // 
            // onWorkflowActivated1
            // 
            correlationtoken2.Name = "workflowToken";
            correlationtoken2.OwnerActivityName = "OutboundDocumentslWF";
            this.onWorkflowActivated1.CorrelationToken = correlationtoken2;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind7.Name = "OutboundDocumentslWF";
            activitybind7.Path = "workflowProperties";
            this.onWorkflowActivated1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // stateInitializationActivity3
            // 
            this.stateInitializationActivity3.Activities.Add(this.ConfirmIfApprovalsFinished);
            this.stateInitializationActivity3.Name = "stateInitializationActivity3";
            // 
            // stateInitializationActivity1
            // 
            this.stateInitializationActivity1.Activities.Add(this.InitializeApprovers);
            this.stateInitializationActivity1.Activities.Add(this.ifElseActivity1);
            this.stateInitializationActivity1.Name = "stateInitializationActivity1";
            // 
            // eventDrivenActivity2
            // 
            this.eventDrivenActivity2.Activities.Add(this.onTaskChanged1);
            this.eventDrivenActivity2.Activities.Add(this.ifElseActivity2);
            this.eventDrivenActivity2.Name = "eventDrivenActivity2";
            // 
            // stateInitializationActivity2
            // 
            this.stateInitializationActivity2.Activities.Add(this.createApprovalTask);
            this.stateInitializationActivity2.Name = "stateInitializationActivity2";
            // 
            // eventDrivenActivity1
            // 
            this.eventDrivenActivity1.Activities.Add(this.onWorkflowActivated1);
            this.eventDrivenActivity1.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity1.Name = "eventDrivenActivity1";
            // 
            // initializeApproverTaskState
            // 
            this.initializeApproverTaskState.Activities.Add(this.stateInitializationActivity3);
            this.initializeApproverTaskState.Name = "initializeApproverTaskState";
            // 
            // initializeApproversListState
            // 
            this.initializeApproversListState.Activities.Add(this.stateInitializationActivity1);
            this.initializeApproversListState.Name = "initializeApproversListState";
            // 
            // approvalState
            // 
            this.approvalState.Activities.Add(this.stateInitializationActivity2);
            this.approvalState.Activities.Add(this.eventDrivenActivity2);
            this.approvalState.Name = "approvalState";
            // 
            // finalState
            // 
            this.finalState.Name = "finalState";
            // 
            // initialState
            // 
            this.initialState.Activities.Add(this.eventDrivenActivity1);
            this.initialState.Name = "initialState";
            // 
            // OutboundDocumentslWF
            // 
            this.Activities.Add(this.initialState);
            this.Activities.Add(this.finalState);
            this.Activities.Add(this.approvalState);
            this.Activities.Add(this.initializeApproversListState);
            this.Activities.Add(this.initializeApproverTaskState);
            this.CompletedStateName = "finalState";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initialState";
            this.Name = "OutboundDocumentslWF";
            this.CanModifyActivities = false;

        }

        #endregion

        private CodeActivity SetFinalItemStatus;

        private SetStateActivity setStateActivity6;

        private SetStateActivity setStateActivity5;

        private IfElseBranchActivity ifElseBranchActivity4;

        private IfElseBranchActivity IsApprovalsComplete;

        private IfElseActivity ConfirmIfApprovalsFinished;

        private IfElseBranchActivity ifElseBranchActivity3;

        private IfElseBranchActivity TaskCompleted;

        private IfElseActivity ifElseActivity2;

        private SetStateActivity setStateActivity4;

        private CodeActivity codeActivity1;

        private SetStateActivity setStateActivity3;

        private SetStateActivity setStateActivity2;

        private IfElseBranchActivity ifElseBranchActivity2;

        private IfElseBranchActivity ApproverListEmpty;

        private IfElseActivity ifElseActivity1;

        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged onTaskChanged1;

        private Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType createApprovalTask;

        private EventDrivenActivity eventDrivenActivity2;

        private StateInitializationActivity stateInitializationActivity2;

        private StateInitializationActivity stateInitializationActivity3;

        private StateActivity initializeApproverTaskState;

        private CodeActivity InitializeApprovers;

        private StateInitializationActivity stateInitializationActivity1;

        private StateActivity initializeApproversListState;

        private SetStateActivity setStateActivity1;

        private StateActivity finalState;

        private StateActivity approvalState;

        private Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated onWorkflowActivated1;

        private EventDrivenActivity eventDrivenActivity1;

        private StateActivity initialState;































































































    }
}
